import threading
import time


class CodingThread(threading.Thread):
    def run(self):
        thread = threading.current_thread()
        print(thread)
        print("线程名称", thread.name)
        for i in range(5):
            print("--fun1中的值为：", i)
            time.sleep(1)


class CodingThread2(threading.Thread):
    def run(self):
        thread = threading.current_thread()
        print(thread)
        print("线程名称", thread.name)
        for i in range(5):
            print("--fun2中的值为：", i)
            time.sleep(1)


def mult():
    t1 = CodingThread()
    t2 = CodingThread2()
    t3 = CodingThread2()
    t1.start()
    t2.start()
    t3.start()
    print(threading.enumerate())


if __name__ == '__main__':
    mult()
